<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
    <title>example.com</title>
    <link type="text/css" rel="stylesheet" href="/media/css/yui/reset-fonts-grids.css" />
    <link type="text/css" rel="stylesheet" href="/media/css/snapboard.css" />    
    <link type="text/css" rel="stylesheet" href="/media/css/form.css" />    
    <link type="text/css" rel="stylesheet" href="/media/css/nav.css" />    

    <link rel="alternate" type="application/rss+xml" title="RSS" href="/snapboard/feeds/latest/" />

    {# gotta come first #}
    <script src="/media/js/yui/yahoo-min.js" type="text/javascript"></script>

    <script src="/media/js/thread.js" type="text/javascript"></script>
    <script src="/media/js/yui/connection-min.js" type="text/javascript"></script>
    <script src="/media/js/yui/dom-min.js" type="text/javascript"></script>
</head>

<body id="yahoo-com" onLoad="procAllTimeSince();">
<div id="doc2" class="yui-t4"><!-- "doc" here for example only; use any page width -->

    <div id="hd">
        <br />
        {% block site_title %}
        <p style="font-size: 150%;">SNAPBOARD</p>
        {% endblock %}
        <br />
        <div id="navigation">
            <ul>
                <li><a href="/snapboard/threads/"><span>All Discussions</span></a></li>
                <li><a href="/snapboard/categories/"><span>Categories</span></a></li>
                {% if user.is_authenticated %}
                <li><a href="/snapboard/favorites/"><span>Favorites</span></a></li>
                <li><a href="#"><span>Private Posts</span></a></li>
                {% endif %}
            </ul>
        </div>
    </div>
    <hr />

    <div id="bd">
        <div id="yui-main">
            <div class="yui-b">
                {% block snapboard_header %}
                {% endblock %}
                {% block snapboard_main %}
                {% endblock %}
            </div>
        </div>
        <div class="yui-b">
            {% block side_panel %}
            <div class="forummenu-first">
                {% if user.is_authenticated %}
                    <p style="font-size: 122%;">
                        <b><a href="/snapboard/newtopic/">New Topic</a></b>
                    </p>
                    <br />
                    <p>
                        You are signed in as <a href="/snapboard/profile">{{ user.username }}</a>
                        {% if user.is_staff %}
                        <b>(STAFF)</b>
                        {% endif %}
                    </p>
                    <br />
                    <p><a href="/snapboard/signout">Sign out</a></p>
                {% else %}
                    <p>You are not logged in.</p>
                    <br />
                    {% if form.has_errors %}
                    <p>Your username and password didn't match.</p>
                    {% endif %}

                    <form method="post" action="/snapboard/signin/">
                        {{ login_form.as_p }}
                        <div>
                            <input type="submit" value="Sign In" />
                            <input type="hidden" name="next" value="{{ login_next }}" />
                        </div>
                    </form>
                    <br />

                    <p>You need to have a user account in order to contribute
                    to discussions on this forum.</p>
                    <p style="font-size:small"><a href="/accounts/register/">Register for the Forums</a></p>
                {% endif %}
            </div>
            
            {% if user.is_staff %}
                <br />
                <div class="forummenu">
                <p><b>Admin Shortcuts</b></p>
                <br />
                <ul>
                    <li>&#187; <b><a href="/admin/">Admin Site</a></b></li>
                    <li>&#187; <a href="/admin/snapboard/post/?censor__exact=1">Censored posts</a></li>
                    <li>&#187; <a href="/admin/snapboard/abuselist/">Abuse Reports</a></li>
                    <li>&#187; <a href="/admin/snapboard/thread/?csticky__exact=1">Category Sticky</a></li>
                    <li>&#187; <a href="/admin/snapboard/thread/?gsticky__exact=1">Global Sticky</a></li>
                </ul>
                </div>
            {% endif %}
            
            {% if user.is_authenticated %}
                <!-- br />
                <div class="forummenu">
                <ul>
                    <li>&#187; <a href="#">Watched Topics<b></a> <br /> <a href="#">(2 new!)</b></a></li>
                    <li>&#187; <a href="#">Private Posts<b></a> <br /> <a href="#">(4 new!)</b></a></li>
                </ul>
                </div -->
                
                <br />
                <div class="forummenu">
                    <p><b><a href="/snapboard/profile/">Forum Preferences</a></b></p>
                </div>
            {% endif %}
            {% endblock %}
        </div>

    </div>
    <div id="ft">
        <br />
        <div style="text-align:center; font-size: 85%;">
            <a href="http://validator.w3.org/check/referer" title="Check the validity of this site&#8217;s XHTML">xhtml</a> &nbsp; 
            <a href="http://jigsaw.w3.org/css-validator/check/referer" title="Check the validity of this site&#8217;s CSS">css</a> &nbsp; 
        </div>
        <br />
    </div>
</div>
</body>
</html>


